The next topic is error
handling with retries. Retries is not done by default. You have to add or try retry code block step along
with a predicate. There are two predicates
used for default retries. They're used to
target and handle retries for specific
types of errors. The first default
retry will catch and retry 429 and 503 errors. These errors are thrown when too many requests have come into the application at one time, or the service has become
unavailable for some reason. These errors are thrown before your application has actually begun processing the
problematic request. In addition, this default retry will also work when you're
application has already begun processing
a request and has encountered an error pathway
through that process. These errors may be caused
by losing a connection, the script that's being
executed timing out, or if the server gateway becomes unavailable
or time's out. The second predicate, the
default non-hidden idempotent retry can also catch and
retry 429 and 503 errors, but it differs from
the first in that these are the only
errors it will retry.